<template>
    <div>
    <{{pascalCase name}}Modal @register="register{{pascalCase name}}Modal"
    @success='handle{{pascalCase name}}Success'
    ></{{pascalCase name}}Modal>
    </div>
</template>

<script lang='ts' setup>
import {{pascalCase name}}Modal from './{{pascalCase name}}Modal.vue';

  const [register{{pascalCase name}}Modal, { openModal:open{{pascalCase name}}Modal, closeModal:close{{pascalCase name}}Modal }] = useModal();
  function handleOpen{{pascalCase name}}Modal(){
    open{{pascalCase name}}Modal(true, {
      formStatus: 'add',
      record: {},
    })

    function handle{{pascalCase name}}Success(){
      
    }
  }
</script>

<style scoped>

</style>
